
<script>
import ChartBase from '@/component/Charts/ChartBase'

export default {
  name: 'BarChart',
  extends: ChartBase,
  props: {
    option: {
      type: Object,
      default: () => {
        return {
          color: ['#1890FF'],
          grid: {
            containLabel: true,
            left: '20px',
            right: '20px',
            top: '20px',
            bottom: '20px'
          },
          // legend: {},
          tooltip: {
            trigger: 'axis'
          },
          xAxis: {
            type: 'category',
            axisPointer: {
              type: 'shadow'
            }
          },
          yAxis: {
            minInterval: 1,
            min: 0
          },
          dataset: {
            source: []
          },
          series: [{ type: 'bar', name: '事件数量', barMaxWidth: 40 }]
        }
      }
    }

  },
  data () {
    return {
    }
  }
}
</script>
